# -*- encoding: utf-8 -*-

class Jeq (object):

    """ Classe définissant une instruction Jeq Label. """

    def __init__ (self, label, mem):
        self.__label = label
        self.__mem = mem

    def do (self):
        if self.__mem.getFlag('Z'):
            return self.__label

    def __str__ (self):
        return "jeq {0:s}".format(self.__label)

    def __unicode__ (self):
        return self.__str__ () 
